// ignore_for_file: file_names; constant_identifier_names; non_constant_identifier_names

part of easdktool.been;

/// MARK: - 运动类型

/// Ourdoor walking
    /// 户外步行
   const kEASportTypeOurdoorWalking = 1;

    /// Ourdoor running
    /// 户外跑步
   const kEASportTypeOurdoorRunning = 2;

    /// Outdoor on foot
    /// 户外徒步
   const kEASportTypeOurdoorOnFoot = 3;

    /// Ourdoor on mountaineering
    /// 户外登山
   const kEASportTypeOurdoorOnMountaineering = 4;

    /// Outdoor trail running
    /// 户外越野跑
   const kEASportTypeOurdoorTrailRunning = 5;

    /// Outdoor cycling
    /// 户外单车
   const kEASportTypeOurdoorCycling = 6;

    /// Outdoor swimming
    /// 户外游泳
   const kEASportTypeOutdoorSwimming = 7;

    /// Indoor walking
    /// 室内步行
   const kEASportTypeIndoorWalking = 8;

    /// Indoor running
    /// 室内跑步
   const kEASportTypeIndoorRunning = 9;

    /// Indoor exercise
    /// 室内锻炼
   const kEASportTypeIndoorExercise = 10;

    /// Indoor cycling
    /// 室内单车
   const kEASportTypeIndoorCycling = 11;

    /// The elliptical machine
    /// 椭圆机
   const kEASportTypeElliptical = 12;

    /// Yoga
    /// 瑜伽
   const kEASportTypeYoga = 13;

    /// Rowing
    /// 划船机
   const kEASportTypeRowing = 14;

    /// Indoor swimming
    /// 室内游泳
   const kEASportTypeIndoorSwimming = 15;

    /// sports climbing
    /// 攀岩
   const kEASportTypeOdRock = 16;

    /// skateboarding
    /// 滑板
   const kEASportTypeOdSkate = 17;

    /// Roller skating
    /// 轮滑
   const kEASportTypeOdRoller = 18;

    /// parkour
    /// 跑酷
   const kEASportTypeOdParkour = 19;

    /// A parachute jump
    /// 跳伞
   const kEASportTypeOdParachute = 20;

    /// Hit
    /// HIIT
   const kEASportTypeTrainHit = 21;

    /// Weight lifting
    /// 举重
   const kEASportTypeTrainWeight = 22;

    /// Tablet support
    /// 平板支撑
   const kEASportTypeTrainPlank = 23;

    /// Jumping jacks
    /// 开合跳
   const kEASportTypeTrainJumping = 24;

    /// Climb building machine
    /// 爬楼机
   const kEASportTypeTrainStair = 25;

    /// Core training
    /// 核心训练
   const kEASportTypeTrainCore = 26;

    /// Flexible training
    /// 柔韧训练
   const kEASportTypeTrainFlex = 27;

    /// pilates
    /// 普拉提
   const kEASportTypeTrainPilates = 28;

    /// The tensile
    /// 拉伸
   const kEASportTypeTrainStretch = 29;

    /// Strength training
    /// 力量训练
   const kEASportTypeTrainStrength = 30;

    /// Cross training
    /// 交叉训练
   const kEASportTypeTrainCross = 31;

    /// The dumbbell training
    /// 哑铃训练
   const kEASportTypeTrainDumbbell = 32;

    /// Deadlift
    /// 硬拉
   const kEASportTypeTrainDeadlift = 33;

    /// sit-ups
    /// 仰卧起坐
   const kEASportTypeTrainSit = 34;

    /// Functional training
    /// 功能性训练
   const kEASportTypeTrainFuncition = 35;

    /// Upper limb training
    /// 上肢训练
   const kEASportTypeTrainUpper = 36;

    /// Lower limb training
    /// 下肢训练
   const kEASportTypeTrainLower = 37;

    /// Abdominal muscle training
    /// 腹肌训练
   const kEASportTypeTrainAbs = 38;

    /// The back of the train
    /// 背部训练
   const kEASportTypeTrainBack = 39;

    /// Sailboat
    /// 帆船
   const kEASportTypeWaterSailboat = 40;

    /// Pulp board
    /// 浆板
   const kEASportTypeWaterSup = 41;

    /// Water polo
    /// 水球
   const kEASportTypeWaterPolo = 42;

    /// The stroke
    /// 划水
   const kEASportTypeWaterThrash = 43;

    /// canoe
    /// 皮划艇
   const kEASportTypeWaterKayak = 44;

    /// drifting
    /// 漂流
   const kEASportTypeWaterDrifting = 45;

    /// rowing
    /// 划船
   const kEASportTypeWaterBoating = 46;

    /// Fin swimming
    /// 蹼泳
   const kEASportTypeWaterFin = 47;

    /// The diving
    /// 跳水
   const kEASportTypeWaterDiving = 48;

    /// Synchronized swimming
    /// 花样游泳
   const kEASportTypeWaterArtistic = 49;

    /// Snorkel
    /// 潜水
   const kEASportTypeWaterSnorkel = 50;

    /// Kitesurfing
    /// 风筝冲浪
   const kEASportTypeWaterKitesurfing = 51;

    /// Atv
    /// 沙滩车
   const kEASportTypeWaterAtv = 52;

    /// Beach football
    /// 沙滩足球
   const kEASportTypeWaterBeach = 53;

    /// Dance
    /// 舞蹈
   const kEASportTypeDanceDance = 54;

    /// Belly dance
    /// 肚皮舞
   const kEASportTypeDanceDelly = 55;

    /// Gymnastics
    /// 体操
   const kEASportTypeDanceGymnastics = 56;

    /// Setting-up exercise
    /// 健身操
   const kEASportTypeDanceAerobics = 57;

    /// HipHop
    /// 街舞
   const kEASportTypeDanceHipHop = 58;

    /// Boxing
    /// 拳击
   const kEASportTypeFightBoxing = 59;

    /// Wushu
    /// 武术
   const kEASportTypeFightWushu = 60;

    /// Wrestling
    /// 摔跤
   const kEASportTypeFightWrestling = 61;

    /// Taichi
    /// 太极
   const kEASportTypeFightTaichi = 62;

    /// Muay Thai
    /// 泰拳
   const kEASportTypeFightMuayThai = 63;

    /// Judo
    /// 柔道
   const kEASportTypeFightJudo = 64;

    /// Taekwondo
    /// 跆拳道
   const kEASportTypeFightTaekwondo = 65;

    /// Karate
    /// 空手道
   const kEASportTypeFightKarate = 66;

    /// Free combat
    /// 自由搏击
   const kEASportTypeFightFreeSparring = 67;

    /// Soccer
    /// 足球
   const kEASportTypeBallSoccer = 68;

    /// Basketball
    /// 篮球
   const kEASportTypeBallBasketball = 69;

    /// Volleyball
    /// 排球
   const kEASportTypeBallVolleyball = 70;


    /// Badminton
    /// 羽毛球
   const kEASportTypeBallBadminton = 71;

    /// Pingpong
    /// 乒乓球
   const kEASportTypeBallPingpong = 72;

    /// Cricket
    /// 板球
   const kEASportTypeBallCricket = 73;

    /// Football or rugby
    /// 橄榄球
   const kEASportTypeBallFootball = 74;

    /// Racquetball
    /// 墙球
   const kEASportTypeBallRacquetball = 75;

    /// Handball
    /// 手球
   const kEASportTypeBallHandball = 76;

    /// Squash
    /// 壁球
   const kEASportTypeBallSquash = 77;

    /// Shuttlecock
    /// 毽球
   const kEASportTypeBallShuttlecock = 78;

    /// Raga
    /// 藤球
   const kEASportTypeBallRaga = 79;

    /// snowmobiles
    /// 雪车
   const kEASportTypeSnowBoard = 80;

    /// Double plate skiing
    /// 双板滑雪
   const kEASportTypeSnowSkis = 81;

    /// Ice Hockey
    /// 冰球
   const kEASportTypeSnowPuck = 82;

    /// skating
    /// 滑冰
   const kEASportTypeSnowSkate = 83;

    /// Curling
    /// 冰壶
   const kEASportTypeSnowCurling = 84;

    /// Snowboarding
    /// 单板滑雪
   const kEASportTypeSnowMobile = 85;

    /// Luge
    /// 雪橇
   const kEASportTypeSnowSled = 86;

    /// Meditation
    /// 冥想
   const kEASportTypeLeisureMeditation = 87;

    /// Kendo
    /// 剑道
   const kEASportTypeLeisureKendo = 88;

    /// Fence
    /// 击剑
   const kEASportTypeLeisureFence = 89;

    /// Bowling
    /// 保龄球
   const kEASportTypeLeisureBowling = 90;

    /// billiards
    /// 台球
   const kEASportTypeLeisureBilliards = 91;

    /// archery
    /// 射箭
   const kEASportTypeLeisureArchery = 92;

    /// darts
    /// 飞镖
   const kEASportTypeLeisureDarts = 93;

    /// Riding a horse
    /// 骑马
   const kEASportTypeLeisureHorse = 94;

    /// The hoop
    /// 呼啦圈
   const kEASportTypeLeisureHula = 95;

    /// Flying a kite
    /// 放风筝
   const kEASportTypeLeisureKite = 96;

    /// Fishing
    /// 钓鱼
   const kEASportTypeLeisureFishing = 97;

    /// Fribee
    /// 飞盘
   const kEASportTypeLeisureFribee = 98;

    /// Equestrianism
    /// 马术
   const kEASportTypeLeisureEquestrian = 99;

    /// Cycle racing
    /// 赛车
   const kEASportTypeLeisureRacing = 100;

    /// Free exercise
    /// 自由锻炼
   const kEASportTypeOtherFree = 101;

    /// Rope
    /// 跳绳
   const kEASportTypeOtherRope = 102;

    /// Climb
    /// 上楼梯
   const kEASportTypeOtherClimb = 103;

    /// Tug of war
    /// 拔河
   const kEASportTypeOtherPush = 104;

    /// Horizontal bar
    /// 单杠
   const kEASportTypeOtherHorizontal = 105;

    /// Parallel bars
    /// 双杠
   const kEASportTypeOtherParallel = 106;

    /// Tennis
    /// 网球
   const kEASportTypeTennis = 107;

    /// Baseball
    /// 棒球
   const kEASportTypeBaseball = 108;

    /// Hockey
    /// 曲棍球
   const kEASportTypeHockey = 109;

    /// CustomSport
    /// 自定义运动
   const kEASportTypeCustomSport = 110;

    /// MarkTime
    /// 踏步
   const kEASportTypeMarkTime = 111;

    /// Walking machine
    /// 漫步机
   const kEASportTypeWalkingMachine = 112;

    /// Athletics
    /// 田径
   const kEASportTypeAthletics = 113;

    /// Lumbar abdomen training
    /// 腰腹训练
   const kEASportTypeLumbarAbdomenTraining = 114;

    /// Latin dance
    /// 拉丁舞
   const kEASportTypeLatinDance = 115;

    /// Ballet
    /// 芭蕾
   const kEASportTypeBallet = 116;

    /// Golf
    /// 高尔夫
   const kEASportTypeGolf = 117;

    /// Folk dance
    /// 民族舞
   const kEASportTypeFolkDance = 118;

    /// Lacrosse
    /// 长曲棍球
   const kEASportTypeLacrosse = 119;

    /// Softball
    /// 垒球
   const kEASportTypeSoftball = 120;

    /// PeakBall
    /// 匹克球
   const kEASportTypePeakBall = 121;

    /// Trampoline
    /// 蹦床
   const kEASportTypeTrampoline = 122;

    /// Parkour
    /// 酷跑
   const kEASportTypeParkour = 123;

    /// Push-ups
    /// 俯卧撑
   const kEASportTypePushUp = 124;

    /// High jump
    /// 跳高
   const kEASportTypeHighJump = 125;

    /// Long jump
    /// 跳远
   const kEASportTypeLongJump = 126;

    
    
    /// Intelligent movement: Daily
    /// 智慧运动: 日常运动
   const kEASportTypeDailyEx = 32768;

    /// Intelligent movement:
    /// 智慧运动: 户外步行
   const kEASportTypeOurdoorWalkingEx = 32769;

    /// Intelligent movement:
    /// 智慧运动: 户外跑步
   const kEASportTypeOurdoorRunningEx = 32770;

    /// Intelligent movement:
    /// 智慧运动: 户外徒步
   const kEASportTypeOurdoorOnFootEx = 32771;

    /// Intelligent movement:
    /// 智慧运动: 户外登山
   const kEASportTypeOurdoorOnMountaineeringEx = 32772;

    /// Intelligent movement:
    /// 智慧运动: 户外越野跑
   const kEASportTypeOurdoorTrailRunningEx = 32773;

    /// Intelligent movement:
    /// 智慧运动: 户外单车
   const kEASportTypeOurdoorCyclingEx = 32774;

    /// Intelligent movement:
    /// 智慧运动: 户外游泳
   const kEASportTypeOutdoorSwimmingEx = 32775;

    /// Intelligent movement:
    /// 智慧运动: 室内步行
   const kEASportTypeIndoorWalkingEx = 32776;

    /// Intelligent movement:
    /// 智慧运动: 室内跑步
   const kEASportTypeIndoorRunningEx = 32777;

    /// Intelligent movement:
    /// 智慧运动: 室内锻炼
   const kEASportTypeIndoorExerciseEx = 32778;

    /// Intelligent movement:
    /// 智慧运动: 室内单车
   const kEASportTypeIndoorCyclingEx = 32779;

    /// Intelligent movement:
    /// 智慧运动: 椭圆机
   const kEASportTypeEllipticalEx = 32780;

    /// Intelligent movement:
    /// 智慧运动: 瑜伽
   const kEASportTypeYogaEx = 32781;

    /// Intelligent movement:
    /// 智慧运动: 划船机
   const kEASportTypeRowingEx = 32782;

    /// Intelligent movement:
    /// 智慧运动: 室内游泳
   const kEASportTypeIndoorSwimmingEx = 32783;
    
class EABigDataSport {
  // 运动类型
  int sportType = 0;

// 起始时间戳
  int beginTimeStamp = 0;

// 停止时间戳
  int endTimeStamp = 0;

// 步数
  int steps = 0;

// 卡路里（单位:小卡)
  int calorie = 0;

// 距离 （单位:厘米）
  int distance = 0;

// 运动时长(单位:秒)
  int duration = 0;

// 训练效果 正常心率 时长(单位:秒)
  int trainingEffectNormal = 0;

// 训练效果 热身心率 时长(单位:秒)
  int trainingEffectWarmUp = 0;

// 训练效果 消耗脂肪 时长(单位:秒)
  int trainingEffectFatconsumption = 0;

// 训练效果 有氧心率 时长(单位:秒)
  int trainingEffectAerobic = 0;

// 训练效果 无氧心率 时长(单位:秒)
  int trainingEffectAnaerobic = 0;

// 训练效果 极限心率 时长(单位:秒)
  int trainingEffectLimit = 0;

// 平均心率
  int averageHeartRate = 0;

// 平均体温（单位：摄氏度）
  // int averageTemperature = 0;

// 平均速度（单位: KM/H *100倍）
  int averageSpeed = 0;

// 平均配速（单位: S/KM）
  int averagePace = 0;

// 平均步频（单位: SPM 步每分钟）
  int averageStepFreq = 0;

// 平均步距（单位:厘米）
  int averageStride = 0;

// 平均海拔（单位:厘米）
  int averageAltitude = 0;

// 最大心率
  int averageHeartRateMax = 0;

// 最小心率
  int averageHeartRateMin = 0;

// 次数【跳绳】
  int count = 0;

// // 有效时长【UTE设备特有】
//   int validTime = 0;

  EABigDataSport.fromMap(Map<String, dynamic> map) {
    if (map["eType"] != null) {
      sportType = map["eType"];
    }
    if (map["calorie"] != null) {
      calorie = map["calorie"];
    }
    if (map["distance"] != null) {
      distance = map["distance"];
    }
    if (map["duration"] != null) {
      duration = map["duration"];
    }
    if (map["steps"] != null) {
      steps = map["steps"];
    }
    if (map["beginTimeStamp"] != null) {
      beginTimeStamp = map["beginTimeStamp"];
    }
    if (map["endTimeStamp"] != null) {
      endTimeStamp = map["endTimeStamp"];
    }
    if (map["trainingEffectNormal"] != null) {
      trainingEffectNormal = map["trainingEffectNormal"];
    }
    if (map["trainingEffectFatconsumption"] != null) {
      trainingEffectFatconsumption = map["trainingEffectFatconsumption"];
    }
    if (map["trainingEffectAerobic"] != null) {
      steps = map["trainingEffectAerobic"];
    }
    if (map["trainingEffectAnaerobic"] != null) {
      trainingEffectAnaerobic = map["trainingEffectAnaerobic"];
    }
    if (map["trainingEffectLimit"] != null) {
      trainingEffectLimit = map["trainingEffectLimit"];
    }
    if (map["trainingEffectWarmUp"] != null) {
      trainingEffectWarmUp = map["trainingEffectWarmUp"];
    }
    if (map["averageHeartRate"] != null) {
      averageHeartRate = map["averageHeartRate"];
    }
    if (map["averageSpeed"] != null) {
      averageSpeed = map["averageSpeed"];
    }
    if (map["averagePace"] != null) {
      averagePace = map["averagePace"];
    }
    if (map["averageStepFreq"] != null) {
      averageStepFreq = map["averageStepFreq"];
    }
    if (map["averageStride"] != null) {
      averageStride = map["averageStride"];
    }
    if (map["averageAltitude"] != null) {
      averageAltitude = map["averageAltitude"];
    }
    if (map["averageHeartRateMax"] != null) {
      averageHeartRateMax = map["averageHeartRateMax"];
    }
    if (map["averageHeartRateMin"] != null) {
      averageHeartRateMin = map["averageHeartRateMin"];
    }
    if (map["count"] != null) {
      count = map["count"];
    }

//  android
    if (map["e_type"] != null) {
      sportType = map["e_type"];
    }
    if (map["begin_time_stamp"] != null) {
      beginTimeStamp = map["begin_time_stamp"];
    }
    if (map["end_time_stamp"] != null) {
      endTimeStamp = map["end_time_stamp"];
    }
    if (map["training_effect_normal"] != null) {
      trainingEffectNormal = map["training_effect_normal"];
    }
    if (map["training_effect_fatconsumption"] != null) {
      trainingEffectFatconsumption = map["training_effect_fatconsumption"];
    }
    if (map["training_effect_aerobic"] != null) {
      steps = map["training_effect_aerobic"];
    }
    if (map["training_effect_anaerobic"] != null) {
      trainingEffectAnaerobic = map["training_effect_anaerobic"];
    }
    if (map["training_effect_limit"] != null) {
      trainingEffectLimit = map["training_effect_limit"];
    }
    if (map["training_effect_warmUp"] != null) {
      trainingEffectWarmUp = map["training_effect_warmUp"];
    }
    if (map["average_heart_rate"] != null) {
      averageHeartRate = map["average_heart_rate"];
    }
    if (map["average_speed"] != null) {
      averageSpeed = map["average_speed"];
    }
    if (map["average_pace"] != null) {
      averagePace = map["average_pace"];
    }
    if (map["average_step_freq"] != null) {
      averageStepFreq = map["average_step_freq"];
    }
    if (map["average_stride"] != null) {
      averageStride = map["average_stride"];
    }
    if (map["average_altitude"] != null) {
      averageAltitude = map["average_altitude"];
    }
    if (map["average_heart_rate_max"] != null) {
      averageHeartRateMax = map["average_heart_rate_max"];
    }
    if (map["average_heart_rate_min"] != null) {
      averageHeartRateMin = map["average_heart_rate_min"];
    }
  }
}
